package cn.zjyj.module.zjyj.controller.admin.riskidentify.vo;

import cn.zjyj.module.zjyj.controller.admin.riskidentifytarget.vo.RiskIdentifyTargetSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;
import java.util.List;

@Schema(description = "管理后台 - 风险辨识主新增/修改 Request VO")
@Data
public class RiskIdentifySaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10678")
    private Long id;

    @Schema(description = "风险类型（1:作业类，2:设备类，3:环境类，4公共类）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "风险类型（1:作业类，2:设备类，3:环境类，4公共类）不能为空")
    private Integer riskType;

    @Schema(description = "风险类型内容id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7157")
    @NotNull(message = "风险类型内容id不能为空")
    private Long riskTypeInfoId;

    private Long instanceId;

    //(message = "风险对象不能为空")
    private List<RiskIdentifyTargetSaveReqVO> identifyTargets;

}